<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>详细信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="resources/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="resources/css/public.css" media="all"/>
    <style>
        .layui-form-label{width: 80px}
    </style>
    <style>
        .layui-input-block{width: 70%}
    </style>
</head>
<body class="childrenBody">
<form class="layui-form" style="width:100%;" id="dataFrm">
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label" >车位编号:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input id" name="id" lay-verify="required" readonly>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">地址:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input address" name="address" lay-verify="required" readonly>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">价格:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input price" name="price" lay-verify="required" readonly>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">状态:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input state" name="state" lay-verify="required" readonly >
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">租客:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input per" name="per" lay-verify="required" readonly >
        </div>
    </div>

</form>
<script type="text/javascript" src="resources/layui/layui.js"></script>
<script th:inline="none">
    layui.use(['form', 'layer', 'laydate', 'table', 'laytpl', 'upload'], function () {
        var form = layui.form
        layer = parent.layer === undefined ? layui.layer : top.layer,
            $ = layui.jquery,
            laydate = layui.laydate,
            laytpl = layui.laytpl,
            table = layui.table,
            upload = layui.upload;
        $.ajax({
               url: "/findmerchantuser",
               success: function (zzz) {
             var zz=  $(".address").val();
             console.log(zzz.data.mAddress)
              zz=zz+zzz.data.mAddress
                   $(".address").val(zz);
                   $(".per").val(zzz.data.mName)
               }
        })
    })
</script>
</body>
</html>